//
// Created by wyh on 2025-07-28 23:21.
//

#ifndef FRAMEWORK_CPP_CLASS_FIELD_H
#define FRAMEWORK_CPP_CLASS_FIELD_H

#include <string>

namespace wyh {
    namespace reflect {
        class ClassField
        {
        public:
            ClassField() : m_offset(0){}
            ClassField(const std::string &name,const std::string &type,size_t offset) : m_name(name),m_type(type),m_offset(offset){}
            ~ClassField() = default;

            const std::string &name() const
            {
                return m_name;
            }

            const std::string &type() const
            {
                return m_type;
            }

            size_t offset() const
            {
                return m_offset;
            }
        private:
            std::string m_name;
            std::string m_type;
            size_t m_offset;
        };
    } // namespace reflect
} // namespace wyh

#endif //FRAMEWORK_CPP_CLASS_FIELD_H
